const shell = require('shelljs');

// 拿到script的参数
const args = process.argv.splice(2);
console.log(args[0]);
const commitMessage = args[0].trim();

shell.exec('git add .');

shell.exec(`git commit -m ${commitMessage ? commitMessage : 'update'}`);

shell.exec('git push'); //
